@import "./iconfont.less";
@import "./color.less";

.message{
    padding:  20px 30px;
    position: absolute;
    left: 50%;
    top: 50%;
    transition: linear 0.3s;
    transform: translate(-50%, -50%) translateY(50px);
    z-index: 999;
    box-shadow: -2px 2px 5px rgba(0,0,0,0.5);
    opacity: 0;
    display: flex;
    color: #fff;
    border-radius: 10px;
    font-size: 20px;
    line-height: 30px;
    white-space: nowrap;
    .icon{
        margin-right: 10px;
        font-size: 30px;
    }
    &.info{
        background-color: @primary;
    }
    &.error{
        background-color: @danger;
    }
    &.warn{
        background-color: @warn;
    }
    &.success{
        background-color: @success;
    }
}
